package com.example.trb.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class SessionUtil {
    public static void set(HttpServletRequest request, String name, Object val) {
        HttpSession session = request.getSession();
        session.setAttribute(name, val);
    }

    public static Object get(HttpServletRequest request, String name) {
        HttpSession session = request.getSession();
        return session.getAttribute(name);
    }
}
